package com.xpxrule.util;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;

public class FormatStringUtil {
    private static final String PREFIX_FORMAT = "%s.%s";
    public static String formatPrefix(String prefix, String string) {
        return StringUtils.isEmpty(prefix) ? string : String.format(PREFIX_FORMAT, prefix, string);
    }
}
